﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class chi_tiet_tin : System.Web.UI.Page
{
    string id;
    protected string tieu_de;
    protected string anh_to;
    protected string tom_tat;
    protected string noi_dung;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] != null)
        {
            id = Request.QueryString["id"].ToString();
            Tin tin = new Tin();
            ObjTin objTin = tin.getTinByTinId(id);
            anh_to = objTin.Anh_to;
            tom_tat = objTin.Tom_tat;
            noi_dung = objTin.Noi_dung;
            tieu_de = objTin.Tieu_de;
            Page.Title = objTin.Tieu_de;
        }
    }
}